{include file="layout/header" title="主账户列表" /}
	<div class="view-body">
    {include file="layout/menu" /}
		<div class="view-product">
			<div class="company_identify">
				<div class="manage-head">
					<h6 class="padding-left manage-head-con">主账户列表</h6>
				</div>

				<form class="layui-form" action="{:url('admin/user/main')}" method="post" name="form">
					<div class="layui-form-item">
					    <label class="layui-form-label">用户名</label>
						<div class="layui-input-inline">
					      	<input type="text" name="username" class="layui-input">
					    </div>
						<div class="layui-input-inline">
					      	<button class="layui-btn layui-btn-primary">筛选</button>
					    </div>
					</div>
				</form>
				
				<div class="offcial-table tr-border table-margin clearfix">
					<div class="tr-th clearfix">
						<div class="th w5">ID</div>
						<div class="th w10">账户</div>
						<div class="th w10">分红天数</div>
						<div class="th w10">每日分红</div>
						<div class="th w10">累计分红</div>
            			<div class="th w10">推荐奖</div>
						<div class="th w10">分红奖</div>
						<div class="th w10">激活时间</div>
						<div class="th w10">最后分红时间</div>
						<div class="th w10">状态</div>
					</div>
						{volist name="list" id="v"}
						<div class="tr clearfix border-bottom-none">
							<div class="td w5">{$v.id}</div>
							<div class="td w10">{$v.name}</div>
							<div class="td w10">{$v.day}</div>
							<div class="td w10">{$v.money}</div>
							<div class="td w10">{$v.total}</div>
							<div class="td w10">{$v.invite}</div>
							<div class="td w10">{$v.balance}</div>
							<div class="td w10">{:date('Y-m-d H:i:s',$v['time'])}</div>
							<div class="td w10">{:date('Y-m-d H:i:s',$v['last_time'] ? $v['last_time'] : '')}</div>
							<div class="td w10">
								{eq name="v.status" value="0"}未激活{/eq}
				            	{eq name="v.status" value="1"}分红中{/eq}
				            	{eq name="v.status" value="2"}已出局{/eq}
							</div>
						</div>
						{/volist}
				</div>

				<div class="fl margin-top padding-big-left">
					
				</div>

				<div class="fr padding-big-right">
					<div class="page">
						{$list->render()}
					</div>
				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript">
		new Form('form').init({$post});
	    layui.use(['form', 'layer'], function(){
			var $ = layui.jquery;
    		var layer = layui.layer;

		});
	</script>
{include file="layout/footer" /}
